﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using ajayumi.develop.win32.GRssReader.Service.Base;

namespace ajayumi.develop.win32.GRssReader.Google.Reader
{
    public class UnReadItem : XElementItemBase
    {

        public int Count { get; set; }

        public UnReadItem(XElement item)
            : base(item)
        {
        }

        protected override void LoadItem(System.Xml.Linq.XElement item)
        {
            // Regular fields.
            this.Id = GetDescendantValue(item, "string", "name", "id");
            this.Count = int.Parse(GetDescendantValue(item, "number", "name", "count"));
        }

    }
}
